package Tread;

public class Test1 {
    public static void main(String[] args) {
        Thread t=new MyTread();
        t.start();
        for (int i = 0; i < 10; i++) {
            System.out.println("主线程："+i);
        }
    }

}
 class MyTread extends Thread{
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println("子线程："+i);
        }
    }
}
